home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 02 Useful Techniques / 08 Zarozinski / src / ffllapi / DefuzzSetObj.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.7 KB  |  83 lines

  1. //
  2. // File:    DefuzzSetObj.cpp    
  3. //
  4. // Purpose:    Base class for Defuzzification methods.  Decendents of this object are part
  5. //            of each set in the output variable and contains all logic to calculate the
  6. //            defuzzification
  7. //
  8. // Copyright ⌐ 2001 Louder Than A Bomb! Software
  9. //
  10. // This file is part of the FFLL (Free Fuzzy Logic Library) project (http://ffll.sourceforge.net)
  11. // It is released under the BSD license, see http://ffll.sourceforge.net/license.txt for the full text.
  12. //
  13.  
  14. #ifdef _DEBUG
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18.  
  19. #include "DefuzzSetObj.h"
  20. #include "FuzzyOutSet.h"
  21.  
  22. //
  23. // Function:    DefuzzSetObj()
  24. // 
  25. // Purpose:        Constructor
  26. //
  27. // Arguments:
  28. //
  29. //        FuzzyOutSet* par - set that this is part of
  30. //
  31. // Returns:
  32. //
  33. //        none
  34. //
  35. // Author:    Michael Zarozinski
  36. // Date:    6/01
  37. // 
  38. // Modification History
  39. // Author    Date        Modification
  40. // ------    ----        ------------
  41. //
  42. //
  43. DefuzzSetObj::DefuzzSetObj(FuzzyOutSet* par) : FFLLBase(par)
  44. {
  45.     // nothing to do 
  46. }
  47.  
  48. //
  49. // Function:    ~DefuzzSetObj()
  50. // 
  51. // Purpose:        Destructor
  52. //
  53. // Arguments:
  54. //
  55. //        none
  56. //
  57. // Returns:
  58. //
  59. //        none
  60. //
  61. // Author:    Michael Zarozinski
  62. // Date:    6/01
  63. // 
  64. // Modification History
  65. // Author    Date        Modification
  66. // ------    ----        ------------
  67. //
  68. //
  69.  
  70. DefuzzSetObj::~DefuzzSetObj()
  71. {
  72.     // nothing to do
  73. }
  74.  
  75. /////////////////////////////////////////////////////////////////////
  76. ////////// Trivial Functions That Don't Require Headers /////////////
  77. /////////////////////////////////////////////////////////////////////   
  78.         
  79. FuzzyOutSet* DefuzzSetObj::get_parent() const 
  80. {
  81.     return static_cast<FuzzyOutSet*>(FFLLBase::get_parent());
  82. };
  83.